const http = require('http')

http.createServer(function (req, res) {
    // 开启cors
    res.writeHead(200, {
        'Access-Control-Allow-Origin': '*',  // 允许所有域名访问
        'Access-Control-Allow-Methods': 'GET'
    })
    
    res.end('收到！！！')
}).listen(3000)
